<?php
/**
 * +---------------------------------------------------
 * @File: SysnodeAction.class.php
 * @Function: 
 * @Date: 2011-6-9
 * @Author: Jackean <mosquitoyuan@163.com>
 * @Version: 
 * +---------------------------------------------------
 */
 
 class SysnodeAction extends CommonAction
 {
 	private $ManTable = 'Node';									//默认要操作的数据库表
 	
 	/**
 	 * +-----------------------------------------------
 	 * @ 系统节点列表展示
 	 * +-----------------------------------------------
 	 */
 	public function nodelist()
 	{
 		$Form = M($this->ManTable);
 		//import("ORG.Util.Page");
 		
 		$navG = $this->getmannavgroup(0,1);

 		$count = $Form->count();
 		$listAll=$Form->select();
 		$list = array();
 		foreach ($listAll as $key=>$val)
 		{
 			$val['navg'] = $navG[$val['nav_id']];
 			if ($val['level']==1) $list['mod'][$key] = $val;
 			if ($val['level']==2) $list['act'][$val['pid']][$key] = $val;
 		}
 		
 		$this->assign('list',$list);
 		$this->display();
 	}
 	
 	/**
 	 * +-----------------------------------------------
 	 * @ 添加系统节点
 	 * +-----------------------------------------------
 	 */
 	public function addnode()
 	{
 		$this->display();
 	}
 }
 
 ?>